﻿#pragma once
#ifndef _WEB_CLSSS_H_
#define _WEB_CLSSS_H_


#include <QOBject>
#include <QFileDialog>
#include <QSettings>
#include <memory>
#include <meet_service.hpp>

class MainWidget;
class WebClass : public QObject
{
	Q_OBJECT
public:
	WebClass(QObject* parent = Q_NULLPTR);

    ~WebClass();



public slots:
	



    void save_config(const QString key, const QVariant& value);

    QVariant get_config(const QString& key);

    QString get_all_config();



    void drag_area_mouse_down();




    void set_starting_up_auto_run(bool flag);


    void on_esc_pressed();

    void open_url(QString url);

   

   

    QString get_packge_files();

    QString terminal_update(QString data);

private:

    

    void init_get_all_config();
    

    QString all_config_;


    std::shared_ptr<QSettings> setting_;

 
    bool is_active_hangup_;

    MainWidget* main_widget_;

    meet_service* meeting_service_;

    friend class MainWidget;
};

#endif // !_WEB_CLSSS_H_
